import { createApp } from 'vue'
import App from './App.vue'

import router from './router'

//elementplus引入
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//elementplus icon库引入
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

//animated动画引入
import animated from 'animate.css'

//按需引入echarts
import * as echarts from "echarts";
import 'echarts-gl';

//滑动验证码插件
// import SlideVerify from 'vue-monoplasty-slide-verify';

const app = createApp(App)
app.use(router).use(ElementPlus).use(animated).mount('#app')
app.config.globalProperties.$echarts = echarts
// app.prototype.$echarts = echarts

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
  }